//package com.cloudz.iptv.fragment.content.v1;
//
//import android.os.Bundle;
//import android.support.annotation.Nullable;
//import android.view.View;
//
//import com.alibaba.android.vlayout.DelegateAdapter;
//import com.alibaba.android.vlayout.layout.GridLayoutHelper;
//import com.alibaba.android.vlayout.layout.LinearLayoutHelper;
//import com.cloudz.iptv.R;
//import com.cloudz.iptv.fragment.BaseFragment;
//import com.cloudz.iptv.fragment.content.v1.adapter.GridHelperAdapter;
//import com.cloudz.iptv.fragment.content.v1.adapter.data.ItemImageTextBean;
//import com.owen.tvrecyclerview.widget.TvRecyclerView;
//import com.owen.tvrecyclerview.widget.VLayoutManager;
//
//import java.util.ArrayList;
//import java.util.List;
//
//import butterknife.BindView;
//
//public class Page3Bak extends BaseFragment
//{
//    @BindView(R.id.list_page3)
//    TvRecyclerView tvRecyclerViewPage3;
//
//    @Override
//    public void onViewCreated(View view, @Nullable Bundle savedInstanceState)
//    {
//        super.onViewCreated(view, savedInstanceState);
//
//        VLayoutManager layoutManager = (VLayoutManager) tvRecyclerViewPage3.getLayoutManager();
//        final DelegateAdapter adapters = new DelegateAdapter(layoutManager, true);
//
//        tvRecyclerViewPage3.setAdapter(adapters);
//        tvRecyclerViewPage3.setSelectedItemAtCentered(true);
//
//
//        //Linear 布局
//        LinearLayoutHelper linearHelper = new LinearLayoutHelper(10);
//        //delegateAdapter.addAdapter(new LinearAdapter(this,lists, linearHelper));
//
//        //a
//        GridLayoutHelper gridHelper = new GridLayoutHelper(5);
//        gridHelper.setMarginTop(30);
////        gridHelper.setWeights(new float[]{20.0f,20.0f,20.0f,20.0f,20.0f});
//        //设置垂直方向条目的间隔
////        gridHelper.setVGap(2);
//        //设置水平方向条目的间隔
//        gridHelper.setHGap(5);
//        gridHelper.setMarginLeft(30);
//        gridHelper.setMarginBottom(30);
//        //自动填充满布局
//        gridHelper.setAutoExpand(true);
//        List<ItemImageTextBean> itemImageTextBeans = new ArrayList<>();
//
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//        itemImageTextBeans.add(new ItemImageTextBean("xxxx", "https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2124196475,574921376&fm=26&gp=0.jpg"));
//
//        adapters.addAdapter(new GridHelperAdapter(itemImageTextBeans, gridHelper));
//
//
//        tvRecyclerViewPage3.setOnItemListener(new TvRecyclerView.OnItemListener()
//        {
//            @Override
//            public void onItemPreSelected(TvRecyclerView parent, View itemView, int position)
//            {
//
//            }
//
//            @Override
//            public void onItemSelected(TvRecyclerView parent, View itemView, int position)
//            {
//                onMoveFocusBorder(itemView, 1.1f);
//            }
//
//            @Override
//            public void onItemClick(TvRecyclerView parent, View itemView, int position)
//            {
//
//            }
//        });
//
//        // 离开
//        tvRecyclerViewPage3.setOnFocusChangeListener(new View.OnFocusChangeListener()
//        {
//            @Override
//            public void onFocusChange(View view, boolean b)
//            {
//                focusBorder.setVisible(true);
//            }
//        });
//
//    }
//
//    @Override
//    public int getLayoutId()
//    {
//        return R.layout.activity_pager_3;
//    }
//}
